package org.linlinjava.litemall.admin.vo.charge;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.linlinjava.litemall.admin.util.DateUtil;
import org.linlinjava.litemall.core.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@ApiModel("充值请求")
@Data
public class ChargeReqVO extends PageParam {

    @ApiModelProperty("门店id")
    private Integer shopId;

    @ApiModelProperty("充值类型（余额/礼物卡）")
    private Byte rechargeType;

    @ApiModelProperty("充值方式（Clover支付/PayPal支付/余额支付[不记录]/礼物卡支付[不记录]/现金充值）")
    private Byte payType;

    @ApiModelProperty("充值来源（APP/POS）")
    private Byte rechargeSource;

    @ApiModelProperty("会员账号")
    private String username;

    @ApiModelProperty("会员名称")
    private String nickname;

    @ApiModelProperty("卡号")
    private String cardNo;

    @ApiModelProperty("时间")
    @DateTimeFormat(pattern = DateUtil.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime[] dateRange;

}
